package router

import (
	"fx_swift_agent/internal/controller"
	"fx_swift_agent/pkg/middleware"
)

func CardRouter() {
	cardApiVer := miniApiVer.Group("card", middleware.CheckAuth(), middleware.AgentFreezeStatus())
	{
		cardApiVer.POST("createCard", controller.CreateCard)
		cardApiVer.POST("cardList", controller.CardList)
		cardApiVer.POST("cardTradeList", controller.CardTradeList)
		cardApiVer.POST("balanceTransitions", controller.BalanceTransitions)
		cardApiVer.POST("exportCardTrade", controller.ExportCardTrade)

		cardApiVer.GET("getCardDetails", controller.GetCardDetails)
		cardApiVer.GET("operatorCardState", controller.OperatorCardState)
		cardApiVer.GET("getAgentBalanceInfo", controller.GetAgentBalanceInfo)
		cardApiVer.GET("getCardHeadToInfo", controller.GetCardHeadToInfo)

		cardApiVer.POST("cardHolder", controller.CardHolder)
		cardApiVer.POST("getCardHolderList", controller.GetCardHolderList)
		cardApiVer.POST("cardTradeRefundList", controller.CardTradeRefundList)
		cardApiVer.POST("cardRefund", controller.CardRefund)
		cardApiVer.POST("closeCard", controller.CloseCard)

		cardApiVer.GET("cardHolderDetails", controller.CardHolderDetails)
		cardApiVer.GET("deleteCardHolder", controller.DeleteCardHolder)
		cardApiVer.GET("getCardImage", controller.GetCardImage)
		cardApiVer.GET("getAgentCardBalance", controller.GetAgentCardBalance)
		cardApiVer.GET("getUsaStatInfo", controller.GetUsaStatInfo)
	}
}
